package com.atguigu.wuliupublisher.service.impl;


import com.atguigu.wuliupublisher.bean.TradeOrgOrderDayBean;
import com.atguigu.wuliupublisher.bean.TrandsTruckStatisticsBean;
import com.atguigu.wuliupublisher.mapper.TrandsStatsMapper;
import com.atguigu.wuliupublisher.service.TrandsStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrandsStatsServiceImpl implements TrandsStatsService {

    @Autowired
    private TrandsStatsMapper trandsStatsMapper;

    @Override
    public List<TrandsTruckStatisticsBean> getTruckStatistics(Integer date) {
        return trandsStatsMapper.selectTruckStatistics(date);
    }

    @Override
    public List<TradeOrgOrderDayBean> getOrgOrderDayBase(Integer date, Integer limit) {
        return trandsStatsMapper.selectOrgOrderDayBase(date,limit);
    }

    @Override
    public Double getSumAmount(Integer date) {
        return trandsStatsMapper.selectSumAmount(date);
    }
}
